str1="hello world and hello linux and hello python"
ands=str1.count("and")

print(f"and字符串出现的次数为：{ands}")


